package lagou_1;

import java.util.Scanner;

/*
 * 2、扩容作业
 */
public class Expansion {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入数组长度：");
		int volume = scanner.nextInt();
		//模拟数组 随着输入数据容量越来越大
		for(int i = 1;i <= volume;i++) {
			if((int)(volume*0.8)==i) {
				break;
			}
		}
		volume=(int) (volume*1.5);
		System.out.println("扩容后的容量为："+volume);
	}
}
